/* nav */
.bar{
    position: relative;
}
/* .bar>div:hover .nav-wrap{
    display: flex;
} */
.nav-wrap {
    height: 428px;
    width: 1200px;
    margin: 0 auto;
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
}

.nav-left {
    display: flex;
    flex-direction: column;
    width: 238px;
    padding: 5px 0;
    background-color: #fff;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    height: 428px;
    box-sizing: border-box;
    position: relative;
}

.nav-left>li {
    /* text-align: center; */
    line-height: 40px;
    height: 40px;
    font-weight: 700;
    cursor: pointer;
}
.nav-left>li:hover .sub-panel{
    display: flex;
}
.nav-left>li>span {
    color: black;
    margin: 0 10px;
}
.nav-left>li:hover{
    background-color: rgb(221, 221, 221);
}
.sub-panel{
    position: absolute;
    top: 0;
    left: 100%;
    width: 708px;
    height: 428px;
    border: #ef1f1f 2px solid;
    background-color: #fff;
    z-index: 100;
    box-sizing: border-box;
    display: none;
    flex-wrap: wrap;
    overflow: auto;
    padding: 20px;
}
/* .nav-left>li:first-child .sub-panel{
    display: flex!important;
} */
.sub-panel>div{
    width: 50%;
    /* padding: 10px; */
}
.sub-panel>div>h3{
    text-align: left;
    font-size: 16px;
}
.sub-panel>div>span{
    float: left;
    margin-right: 1em;
    font-size: 12px;
    font-weight: normal;
    color: #333;
    cursor: pointer;
}
.sub-panel>div>span:hover{
    color: #ef1f1f;
}
.nav-middle {
    width: 680px;
    margin: 14px;
}
/* sort */
.sort{
    width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    height: 50px;
    box-sizing: border-box;
    padding: 0 20px;
    border-radius: 3px;
    border: solid 1px rgb(211, 211, 211);
}
.sort>span{
    line-height: 50px;
    cursor: pointer;
}
.sort>span:hover{
    color: red;
}
/* cont */
.cont{
    width: 1200px;
    overflow: hidden;
    margin: 20px auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.cont .box{
    border-radius: 3px;
    box-sizing: border-box;
    width: 19%;
    padding: 15px 0;
    border: solid 1px rgb(211, 211, 211);
    float: left;
    text-align: center;
    background-color: #fff;
    margin-bottom: 10px;
}
.box img{
    width: 200px;
    max-height: 200px;
    vertical-align: top;
}
.box>a>p{
    min-height: 57px;
    margin: 10px 10px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.box>a{
    display: block;
    /* height: 40px; */
    overflow: hidden;
}
.box>p.price span:nth-of-type(1){
    text-decoration: line-through;
    font-size: 14px;
    color: #aaa;
}
.box>p.price span:nth-of-type(2){
    font-weight: bold;
    color: red;
}

.box input{
    cursor: pointer;
    color: red;
    background-color: white;
    border: 1px solid red;
}
.box input:hover{
    color: white;
    background-color: red;
}